﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Backend.Data.Managers;
using Backend.Data.Entities;
using System.Diagnostics;

namespace Backend.Data.Tests.Managers
{
    [TestClass]
    public class UbicacionMangerTest
    {


        [TestMethod]
        public void TestStateGetAll()
        {
            var lista = UbicacionManger.GetListByFilter("");
            Debug.WriteLine("  Lista Tamanio " + lista.Count);
        }

        [TestMethod]
        public void TestCreate()
        {
            Guid idG = new Guid("65f4d2e6-bb0e-e511-8062-64510602c72a");

            GeoReferencia gr = GeoReferenciaManager.GetById(idG);

            Debug.WriteLine(" GEO R "+gr.Id);

            Ubicacion Ub = new Ubicacion()
            {
                Latitud ="waza",
                FullAddress = "xx",
                CallePasajeMz = "xx",

                GeoReferencia = gr,
            };
            var comprobanteDB = UbicacionManger.Create(Ub);
            Assert.IsTrue(comprobanteDB.Id != Guid.Empty);
        }

    }
}
